/*
 * @Author: 吴让坤
 * @Date: 2023-03-18 15:17:43
 * @LastEditTime: 2023-05-08 16:08:59
 * @Description: 描述
 */
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import 'uno.css'
import './assets/styles/index.scss'

import '//at.alicdn.com/t/c/font_3961156_fv7pp58jjx7.js'
import 'element-plus/dist/index.css'

// @ts-ignore
import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
// @ts-ignore
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
// @ts-ignore
import Prism from 'prismjs';
VueMarkdownEditor.use(vuepressTheme, {
  Prism,
});
// @ts-ignore
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
// @ts-ignore
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';

// highlightjs
// @ts-ignore
import hljs from 'highlight.js';

VMdPreview.use(githubTheme, {
  Hljs: hljs,
});
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(VueMarkdownEditor);
app.use(VMdPreview);
app.mount('#app')
